class LocalCache():
    
    
    _instance = None

    def __new__(cls):
        if cls._instance is None:
            cls._instance = super().__new__(cls)
            cls._instance.cache = {}
        return cls._instance

    def get(self, key):
        return self.cache.get(key)

    def set(self, key, value):
        self.cache[key] = value
        pass
    
    def remove(self, key):
        self.cache.pop(key, None)
        pass

    def size(self,biz_type):
        res = []
        for key in self.cache.keys():
            if key.startswith(biz_type): 
                res.append(key)
        return len(res)